package com.lynx.system.repository;

import com.lynx.system.beans.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderRepository {
    public void insertOrder(Order order);
    public List<Order> selectOrdersByUid(long uid,int index,int limit);
    public int selectCountByUid(long uid);
    public List<Order> selectOrdersByState(int state,int index,int limit);
    public void updateState(long id);
    public int selectCountByState(int state);
}
